const fs = require("fs");

// 将<svg></svg> 引入，然后export const svg = font

const path = require("path");
const resolve = (dir) => path.resolve(__dirname, dir);

const font = fs.readFileSync(resolve("./symbol-defs.svg"), "utf-8");

fs.writeFileSync(
  resolve("./symbol-defs.js"),
  `export const svg = \`${font}\`;`
);
